<?php
namespace app\index\controller;

use app\common\controller\Front;

class Test extends Front
{

    public function _initialize()
    {
        parent::_initialize();
    }
    
    public function delete()
    {
        $result = db()->execute("delete dc_info,dc_info_meta,dc_term_map from dc_info,dc_info_meta,dc_term_map where dc_info_meta.info_id=dc_info.info_id and dc_term_map.detail_id=dc_info.info_id and dc_info.info_id=2034");
        dump($result);
    }
    
    public function index()
    {
        $result = db('info')
            ->limit(100)
            ->field('info_id')
            ->where('info_id>2000')
            ->chunk(10,function($users){
                dump($users);
        });
        dump($result);
        exit();
    }
}